import request from '@/config/axios'

// 微盟级别消息 VO
export interface LevelMsgVO {
  id: number // ID
}

// 微盟级别消息 API
export const LevelMsgApi = {
  // 查询微盟级别消息分页
  getLevelMsgPage: async (params: any) => {
    return await request.get({ url: `/wo/level-msg/page`, params })
  },

  // 查询微盟级别消息详情
  getLevelMsg: async (id: number) => {
    return await request.get({ url: `/wo/level-msg/get?id=` + id })
  },

  // 新增微盟级别消息
  createLevelMsg: async (data: LevelMsgVO) => {
    return await request.post({ url: `/wo/level-msg/create`, data })
  },

  // 修改微盟级别消息
  updateLevelMsg: async (data: LevelMsgVO) => {
    return await request.put({ url: `/wo/level-msg/update`, data })
  },

  // 删除微盟级别消息
  deleteLevelMsg: async (id: number) => {
    return await request.delete({ url: `/wo/level-msg/delete?id=` + id })
  },

  // 导出微盟级别消息 Excel
  exportLevelMsg: async (params) => {
    return await request.download({ url: `/wo/level-msg/export-excel`, params })
  }
}